import server from "@/utils/request";
//通知类型
//分页获取通知类型
export function getInformTypeByPage(playold: any = {}) {
    return server.get('/school/informType/getInformTypeByPage', { params: playold })
}
//停用
export function deactivate(id: any) {
    return server.post('/school/informType/deactivate/' + id)
}
//启用
export function enable(id: any) {
    return server.post('/school/informType/enable/' + id)
}
//增加
export function saveInformType(playold: any = {}) {
    return server.post('/school/informType/saveInformType?' + 'name' + '=' + playold.name + '&' + 'attribute' + '=' + playold.attribute + '&' + 'state' + '=' + playold.state, playold)
}
//修改
export function updateInformType(playold: any = {}) {
    return server.post('/school/informType/updateInformType?' + 'id' + '=' + playold.id + '&' + 'name' + '=' + playold.name + '&' + 'attribute' + '=' + playold.attribute + '&' + 'state' + '=' + playold.state, playold)
}
//删除
export function deleteInformType(id: any) {
    return server.delete('/school/informType/deleteInformType/' + id)
}
